from datetime import timedelta


class BaseConfig:
    DEBUG = True
    SECRET_KEY = 'media-ai'

    SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/media'

    GOOGLE_CLIENT_ID = '268349680363-9j65vi12k4v9p7qvohii0rjub9gcun17.apps.googleusercontent.com'
    GOOGLE_CLIENT_SECRET = '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'

    JWT_SECRET_KEY = 'media'
    JWT_ACCESS_TOKEN_EXPIRES = timedelta(hours=1)
    JWT_REFRESH_TOKEN_EXPIRES = timedelta(days=30)
    JWT_TOKEN_LOCATION = ['headers']
    JWT_HEADER_NAME = 'Authorization'
    JWT_HEADER_TYPE = 'Bearer'
